package org.jeecg.modules.demo.commoditygroup.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.commoditygroup.entity.CommodityGroup;
import org.jeecg.modules.demo.commoditygroup.mapper.CommodityGroupMapper;
import org.jeecg.modules.demo.commoditygroup.service.ICommodityGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 商品分组
 * @Author: jeecg-boot
 * @Date: 2021-12-30
 * @Version: V1.0
 */
@Service
public class CommodityGroupServiceImpl extends ServiceImpl<CommodityGroupMapper, CommodityGroup> implements ICommodityGroupService {
    @Autowired
    private CommodityGroupMapper commodityGroupMapper;

    // 根据订单id查询
    @Override
    public List<CommodityGroup> getListByStoreId(String storeId) {
        return commodityGroupMapper.getListByStoreId(storeId);
    }
}
